package cat.joronya.supermanager.service;

import java.util.Hashtable;

/**
 * Parse the matches of the day from ACB page.
 * http://www.acb.com/resulcla.php?codigo=LACB-58&jornada=10&resultados=1
 * 
 * @author pol
 */
public interface DayMatchesParser 
{
	// team name mapping
	public static final Hashtable<String, String> teamNameToAcronim = new Hashtable<String, String>()
	{{
		put("La Bruixa d'Or","BXA");
		put("FIATC Joventut","FIATC");
		put("FC Barcelona","FCB");
		put("Valencia Basket Club","VBC");
		put("Bilbao Basket","BB");
		put("Unicaja","UNI");
		put("Tuenti Movil Estudiantes","TME");
		put("Real Madrid","RM");
		put("Laboral Kutxa","LBO");
		put("Herbalife Gran Canaria","HGC");
		put("UCAM Murcia CB","UCAM");
		put("Baloncesto Fuenlabrada","FUE");
		put("Gipuzkoa Basket","GBC");
		put("CAI Zaragoza","CAI");
		put("Iberostar Tenerife", "IBT");
		put("Rio Natura Monbus","RNM");
		put("CB Valladolid","VAL");
		put("Cajasol","CAJ");
	}};
	
	public Hashtable<String, String> getDayMatches();
	
	public long parse(String html) throws Exception;
	
}
